import axios from '@/utils/request'

import config from '@/common/config'

let base = config.getMkBasePath();


/**
 * mem_member_tpa
 *1    默认只开放普通查询，所有查询，只要上传	 分页参数 {currentPage:当前页码从1开始,pageSize:每页记录数,total:总记录【数如果是0后台会自动计算总记录数非0不会自动计算】}，后台都会自动按分页查询 其它 api用到再打开，没用到的api请注释掉，
 *2 查询、新增、修改的参数格式  params={id:'主键 主键',unionid:'全局唯一编号',openid:'帐户加密后的编号，用于对第三方系统进行开放',userid:'MDP用户编号',locked:'是否被锁定',startdate:'启用日期',nickname:'昵称',username:'用户名称',phoneno:'移动电话号码',country:'国家',city:'城市',headimgurl:'头像地址',province:'省份',userunionid:'对应本系统user表的UNIONID',mdpAppid:'前端应用系统编号',deptid:'机构编号',branchId:'云用户机构编号',appid:'第三方登录应用系统编号',authId:'授权编号'}
 **/
 
//普通查询 条件之间and关系  
export const listMemMemberTpa = params => { return axios.get(`${base}/mk/mem/memMemberTpa/list`, { params: params }); };

//模糊查询mem_member_tpa 条件之间or关系  
//export const listMemMemberTpaKey = params => { return axios.get(`${base}/mk/mem/memMemberTpa/listKey`, { params: params }); };

//删除一条mem_member_tpa params={id:'主键 主键'}
export const delMemMemberTpa = params => { return axios.post(`${base}/mk/mem/memMemberTpa/del`,params); };

//批量删除mem_member_tpa  params=[{id:'主键 主键'}]
export const batchDelMemMemberTpa = params => { return axios.post(`${base}/mk/mem/memMemberTpa/batchDel`, params); };

//修改一条mem_member_tpa记录
export const editMemMemberTpa = params => { return axios.post(`${base}/mk/mem/memMemberTpa/edit`, params); };

//新增一条mem_member_tpa
export const addMemMemberTpa = params => { return axios.post(`${base}/mk/mem/memMemberTpa/add`, params); };